<!DOCTYPE html>
<html>
  <head>
    <title>title</title>
    <script type="text/javascript" src="./javascripts/jquery-2.1.1.min.js"></script>
    <script type="text/javascript">
	    function getjson(){
	    	alert();
	    	$.get("http://localhost/webservice/",{password:"good", OrderID:"1234"},function(data){
			  alert("JSON Data: " + eval(data));
			});

		    // $.ajax({
      //            type: "Get",
      //            url: "http://ios.cnpowers.com/service1.asmx/GetOrderByCode_Memo?password=good&OrderID=1234",
      //            cache: false,
      //            error: function (data) { 
      //            	alert(data);
      //            },
      //            jsonp: "callback",
      //            dataType: "jsonp",
      //            success: function (result) {
      //                alert(result); 
      //            }
		    //  });
			// $(window.frames["jsonframe"].document).find("#jsonform").submit(); 
	    }
    </script>
  </head>
  <body>
  	<iframe name="jsonframe" id="jsonframe" width="0" height="0">
  		<form action="http://ios.cnpowers.com/service1.asmx/GetOrderByCode_Memo?password=good&OrderID=1234" method="get" name="jsonform" id="jsonform">
  		</form>
  	</iframe>
    <input type="button" onclick="getjson();" name="" value="获取json" />
  </body>
</html>